<template>
	<s-table ref="tableRef" :columns="columns" :data="loadData" bordered></s-table>
</template>
<script setup>
import singlePointApi from '@/api/tjzy/call/singlePoint/singlePointApi'

const tableRef = ref()
const searchFormState = ref({
	companyName: ''
})
const columns = [
	{
		title: '拨打人',
		dataIndex: 'createName'
	},
	{
		title: '电话号码',
		dataIndex: 'phoneNumber'
	},
	{
		title: '拨打时间',
		dataIndex: 'dailingTime'
	}
]
//分页条件
const loadData = (parameter) => {
	return singlePointApi.getList(Object.assign(parameter, searchFormState.value)).then((res) => {
		console.log(res)
		return res
	})
}
</script>
